package com.baizhi.service;

import com.baizhi.entity.News;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface NewsService {
    public List<News> selectAll();
    public void insert(News news);
    public News selectOne(int id);
    public void delete(int id);
    public void update(News news);
    public List<News> selectByCon(String title,String conent);
    public PageInfo<News> selectByPage(int pageNo,int pageSize);
}
